package com.example.xd.android_vresion_test;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.example.xd.android_vresion_test.android_10.Android_10_Activity;
import com.example.xd.android_vresion_test.android_6.Android6Activity;
import com.example.xd.android_vresion_test.android_7.Android7Activity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {
    public static String TAG = "xd---MainActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Log.i(TAG, "onCreate");
        findViewById(R.id.btn_11).setOnClickListener(this);
        findViewById(R.id.btn_10).setOnClickListener(this);
        findViewById(R.id.btn_9).setOnClickListener(this);
        findViewById(R.id.btn_8).setOnClickListener(this);
        findViewById(R.id.btn_7).setOnClickListener(this);
        findViewById(R.id.btn_6).setOnClickListener(this);
    }

    @Override
    protected void onStart() {
        super.onStart();
        Log.i(TAG, "onStart");

    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.i(TAG, "onResume");

    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.i(TAG, "onPause");

    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.i(TAG, "onStop");

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.i(TAG, "onDestroy");

    }

    @Override
    public void onConfigurationChanged(@NonNull Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
    }

    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_6:
                startActivity(new Intent(MainActivity.this, Android6Activity.class));
                break;
            case R.id.btn_7:
                startActivity(new Intent(MainActivity.this, Android7Activity.class));
                break;
            case R.id.btn_8:
//                startActivity(new Intent(MainActivity.this, Android8Activity.class));
                break;
            case R.id.btn_9:
//                startActivity(new Intent(MainActivity.this, Android9Activity.class));
                break;
            case R.id.btn_10:
                startActivity(new Intent(MainActivity.this, Android_10_Activity.class));
                break;
            case R.id.btn_11:
//                startActivity(new Intent(MainActivity.this, Android_10_Activity.class));
                break;
        }
    }
}
